// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');

/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);

// 自定义 Metro 解析器规则
config.resolver = {
    ...config.resolver, // 保留现有的解析器配置
    // 忽略 Require cycle 的警告
    blacklistRE: /Require cycle:/,
    extraNodeModules: {
        intl: require.resolve('intl'),
    },
};

module.exports = config;
